package com.junhong.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "teacher")
public class Teacher implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id")
	private Integer id;// 工号
	@Column(name = "name", length = 10)
	private String name;// 姓名
	@Column(name = "phone", length = 12)
	private String phone;// 电话
	@Column(name = "post", length = 10)
	private String post;// 职位
	@Column(name = "sex", length = 3)
	private String sex;// 性别
	@Column(name = "mail", length = 20)
	private String mail;// 邮箱

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public Teacher(Integer id, String name, String phone, String post, String sex, String mail) {
		super();
		this.id = id;
		this.name = name;
		this.phone = phone;
		this.post = post;
		this.sex = sex;
		this.mail = mail;
	}

	public Teacher() {
		super();
	}

}
